package com.lan.mylibrary.okhttp;


import android.util.Log;

import com.lan.mylibrary.BuildConfig;

public class L {


    public static void e(String msg) {
        if (BuildConfig.DEBUG) {
           Log.e("111", msg);
        }
    }


    public static void longLog(String str) {
        str = str.trim();
        int index = 0;
        int maxLength = 4000;
        String sub;
        while (index < str.length()) {
            // java的字符不允许指定超过总的长度end
            if (str.length() <= index + maxLength) {
                sub = str.substring(index);
            } else {
                sub = str.substring(index, maxLength);
            }

            index += maxLength;
            android.util.Log.e("111", sub.trim());
        }
    }

}

